* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
}

body {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: darkslateblue;
}

main {
  --width: 60px;
  --height: 60px;
  background-color: white;
  overflow: hidden;
  width: var(--width);
  height: 300px;
  transition: 0.5s;
}
main:has(input:checked) {
  width: 400px;
}
main header {
  border-bottom: solid 1px #ddd;
}
main header .icon {
  width: var(--width);
  height: var(--width);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
main header .icon::after, main header .icon::before {
  content: "";
  transition: 0.5s;
  position: absolute;
  display: flex;
  height: 3px;
  background-color: #333;
  width: 80%;
  border-radius: 5px;
}
main header .icon::after {
  transform: translateY(10px);
  box-shadow: 0 -20px;
}
main header .icon:has(+ input:checked)::before {
  transform: rotate(-45deg);
}
main header .icon:has(+ input:checked)::after {
  transform: translateY(0px) rotate(45deg);
  box-shadow: 0 0px;
}
main menu ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
main menu ul li .fa {
  min-width: var(--width);
  height: var(--height);
  display: flex;
  justify-content: center;
  align-items: center;
}
main menu ul li.active {
  background-color: palevioletred;
  color: white;
}